<!DOCTYPE html>
<!--fieldset with only invalid elements -->
<html>
  <head>
    <style>
      fieldset:invalid { display: none; }
    </style>
  </head>
  <body>
    <fieldset id="fieldset">
      <input required>
    </fieldset>
  </body>
</html>
